﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExamSystem.DAL;
using ExamSystem.Mdeol;
namespace ExamSystem.BLL
{
    public class TquestionBLL
    {
        private TquestioDALn tdn = new TquestioDALn();
         /// <summary>
        /// 查询试题信息
        /// </summary>
        public List<Tquestion> selectkckecheng()
        {
            return tdn.selectkckecheng();
        }


        /// <summary>
        /// 查询试题信息根据id
        /// </summary>
        public List<Tquestion> selectquetionid(int id)
        {
            return tdn.selectquetionid(id);
        }



         /// <summary>
        /// 根据id删除试题信息
        /// </summary>
        public int delete(int id)
        {
            return tdn.delete(id);
        }


        /// <summary>
        /// 查询试题信息
        /// </summary>
        public List<Tquestion> mohuquert(int id, string name)
        {
            return tdn.mohuquert(id, name);
        }



        /// <summary>
        /// 根据id修改试题信息
        /// </summary>
        public int update(Tquestion t)
        {
            return tdn.update(t);
        }
         /// <summary>
        /// 根据添加试题信息
        /// </summary>
        public int insert(Tquestion t)
        {
            return tdn.insert(t);
        }




        /// <summary>
        /// 查询试卷信息查看
        /// </summary>
        public List<Tquestion> selecttpger(int id)
        {
            return tdn.selecttpger(id);
        }


        /// <summary>
        /// 查询试卷信息查看答案
        /// </summary>
        public List<Tquestion> selectanswer(int tpid, int tsid)
        {
            return tdn.selectanswer(tpid,tsid);
        }
    }
}